package com.lxinet.jeesns.modules.wechat.web.manage;

import com.lxinet.jeesns.core.web.BaseController;
import com.lxinet.jeesns.modules.wechat.service.impl.WechatAutoReplyServiceImpl;
import com.lxinet.jeesns.modules.wechat.service.impl.WechatReplyConfigServiceImpl;
import com.lxinet.jeesns.utils.JedisUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import redis.clients.jedis.Jedis;

import javax.annotation.Resource;

@Controller("manageWechatController")
@RequestMapping("/")
public class WechatController extends BaseController {

    private static final String FTL_PATH = "/manage";

    private static final String MANAGE_FTL_PATH = "/manage/wechat";


    private Jedis jedis = JedisUtil.getInstance().getJedis();

    @Resource
    private WechatAutoReplyServiceImpl wechatAutoReplyService;



    @RequestMapping("${managePath}/wechat/index")
    public String index(Model model) {
        model.addAttribute("headerTitle", "头部");
        return MANAGE_FTL_PATH + "/index";
    }


}
